HCLTech Interview Question

write a code for reverse a string in single line