TISCO Bank Public interview question

Write a function to reverse a string.