Landis+Gyr Interview Question

Rotate array by k times