CloudNow Interview Question

Rotate the array K times