Cognizant interview question

Reverse a string without using built in method