Fortinet interview question

move the elements in a given array by two positions