def linear_search(nums_array: list, search: int) -> int:
    """
    Linear Search Algorithm

    Time Complexity --> O(N)

    :param nums_array: list
    :param search: int

    :return index: int
    """
    for i in range(len(nums_array)):
        if search == nums_array[i]:
            return i
    return -1