Nagarro Interview Question

Rotate an array n times.