DLF interview question

Reverse a string using not inbuilt methods