NVIDIA Interview Question

rotate array by k in place