Pergunta de entrevista da empresa Fortinet

move the elements in a given array by two positions