Question d’entretien chez Google

given a array return a element randomly and delete it