TeamViewer Interview Question

I was asked to reverse a String