Smartek21 interview question

Reverse a string without any inbuilt function in java