Indeed interview question

reverse a string