Practice Problem

Rotate Array

Difficulty: Medium

Rotate an array to the right by k steps in-place using the reverse technique for O(1) extra space.