Indeed Interview Question

reverse a string