Shift And Reverse Program In Python In Leetcode