def reverse(list_a: list):
    """Problem 5: Reverse a List.

    Parameters
    ----------
    list_a : list
        The input list

    Returns
    -------
    list_a : list
        The input list reversed

    Raises
    ------
    TypeError
        If the given argument is not of `list` type

    """
    if not isinstance(list_a, list):
        raise TypeError('The argument given is not of `list` type.')
    list_a.reverse()
    return list_a