Thomson Reuters Interview Question

Reverse string problem and a variation on that.