Cpp Program For Array Rotation Leetcode 1509