Cognizant Interview Question

write code to reverse string accept user input