LTM Limited Interview Question

Reverse a string in cpp