Goldman Sachs Interview Question

Rotate a string