def get_params_out_of_range(
    params: list, lower_params: list, upper_params: list
) -> list:
    """
    Check if any parameter specified by the user is out of the range that was defined

    :param params: List of parameters read from the .inp file
    :param lower_params: List of lower bounds provided by the user in the .inp file
    :param upper_params: List of upper bounds provided by the user in the .inp file

    :return: List of parameters out of the defined range
    """
    params_out = [
        i
        for i in range(len(lower_params))
        if params[i] < lower_params[i] or params[i] > upper_params[i]
    ]

    return params_out