JPMorganChase interview question

Python String manipulation and reversal