189 Rotate Array Leetcode Solution