LTM Limited Interview Question

Write code to revers the string