Wipro Interview Question

Reversing a string . Very difficult question though.