Domanda di colloquio di Wipro

Reversing a string . Very difficult question though.