Question d’entretien chez Edmodo

Leetcode original question, application of data structures and algorithms