Walmart Interview Question

reverse a string