Coforge interview question

Rotate an array with a given k value.