Question d’entretien chez Google

Easy first question - Sort array only in odd places