def reverse_array(n):
    """
    Reverse an array (or string). If it is string, you can also use the reverse() method.
    >>> reverse_array([1,2,3])
    [3, 2, 1]

    This works for String too !!
    >>> reverse_array("abhishek")
    'kehsihba'

    """    
    return n[::-1]