Question d’entretien chez Net Driven

asked me to solve a coding problem.