Python Program For Array Rotation Leetcode Javascript