Question d’entretien chez Even Financial

Solving a standard Leetcode medium/hard type question.