PayBox (Israel) interview question

Can you write a function to reverse a string?