Wipro interview question

reverse a string without using predefind funcn