Question d’entretien chez Wipro

Reversing a string . Very difficult question though.