FrontRow (India) interview question

Rotate Array by K towards right