Solved Max Different Subarray II Problem
Implemented a shift array right by K algorithm