Powerex interview question

Invert String