iHerb Interview Question

Algorithm to reverse a string.