MathCo interview question

Reverse a string in python