RBC Interview Question

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