def is_sorted(num_list):
    """Returns index of first sorting failure if not sorted."""
    for i, (a, b) in enumerate(zip(num_list, num_list[1:])):
        if a > b:
            return i
    return 'OK'