GE interview question

Rotate an array for K times.