NVIDIA interview question

Rotate array by k steps