Question d’entretien chez eBay

Leet code medium question and follow up questions about data structure