Question d’entretien chez ETS

I was asked to write code to solve a simple numerical problem.