Rotate String Leetcode Solution