Hexaware Technologies interview question

reverse a string