RBC interview question

Reverse string using python (performed on hacker-rank like website)