Dimentrix interview question

Reverse string