Cpp Program For Array Rotation Leetcode 1501