Reverse a string

Problem 65: Reverse
Take a word from user and print the word in reverse order. [If user gives  “BANGLADESH”, your program should print “HSEDALGNAB”]

code:

of another option: