Born Group interview question

Write code to reverse string.