Question d’entretien chez Goldman Sachs

rotate the array by some amount k