def find_index(fn: callable, items: list):
    """Returns the index of the first element in the array that satisfies the provided testing function. Otherwise, it returns -1, indicating that no element passed the test."""
    for i, item in enumerate(items):
        if fn(item):
            return i
    return -1
