def gimme(input_array):
    """
    Function that when provided with a triplet, returns the index of the numerical element that lies between the
    other two elements.
    :param input_array: an array of integers.
    :return: the index of the middle numerical element in the array.
    """
    return input_array.index(sorted(input_array)[1])