CME interview question

Basic leetcode and data structures.