DotPe interview question

Rotate Array by K positions.