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