def longest_seq(seqs):
    """
    Find the longest chain in the output of all_uninterrupted_seqs
    """
    max_len = 0
    max_seq = []
    for seq in seqs:
        if len(seq) >= max_len:
            max_seq = seq
            max_len = len(max_seq)
    return max_seq