GE HealthCare interview question

Java program to reverse a string without built in function