Macquarie Group interview question

Write a program on paper to reverse a string using no standard library