Python Code To Reverse String Using Functional Planner