def last_consecutives(vals, step=1):
    """
    Find the last consecutive group of numbers
    :param vals:  Array, store numbers
    :param step:  Step size for consecutive numberes, default 1
    :return:      The last group of consecutive numbers of the input vals
    """
    group = []
    expected = None
    for val in reversed(vals):
        if (val == expected) or (expected is None):
            group.append(val)
        else:
            break
        expected = val - step
    return group