Domanda di colloquio di IBM

Two LeetCode questions in 60 min. Data structure and algorithms