Question d’entretien chez Block

General coding question - medium difficulty