Pregunta de entrevista de Wipro

Reversing a string . Very difficult question though.