Rohit Group Interview Question

Reverse a string when user enters it