Rakuten Interview Question

rotate array , a typical leetcode question