Zoho interview question

Rotation of an array was asked in my coding round.