Cognizant interview question

write code to reverse string accept user input