__author__ = 'venkat'

class Solution:
    # @param A : string
    # @return a strings
    def reverseString(self, A):
        result = []
        for a in A:
            result.insert(0,a)
        return ''.join(result)

print Solution().reverseString("abcd")
d33df8a49cd7a3c4312f494e34097f6ea8abfd9c
__author__ = 'venkat'

class Solution:
    # @param A : string
    # @return a strings
    def reverseString(self, A):
        result = []
        for a in A:
            result.insert(0,a)
        return ''.join(result)

print Solution().reverseString("abcd")