DSA Key Problems

Rotate Array

Given an integer array and a nonnegative integer k, rotate the array in place k positions to the right.