Pergunta de entrevista da empresa Wipro

Reversing a string . Very difficult question though.