Coforge Interview Question

Rotate an array with a given k value.