Question d’entretien chez Teya

Leetcode style coding problem of medium difficulty.