Tiger Analytics Interview Question

Reverse the string inplace