String Reverse



Problem to reverse the given string.



Example-1:


Input    : S = "abc"
Output   : cba  


Example-2:


Input    : s = "1234"
Output   : 4321   







Solution




n = "abc"

a = n[::-1]

print(a)



Output



cba