NVIDIA interview question

To find reverse of string