GE Interview Question

Rotate an array for K times.