Question d’entretien chez Tesco

Coding round looking for complete working solution