Apple Interview Question

Rotate array by k steps