Zenon.ai interview question

given an array return an array after n rotations