iHerb interview question

Algorithm to reverse a string.