IBM interview question

Two LeetCode questions in 60 min. Data structure and algorithms