ISEE interview question

Leetcode type stuff, basic data structures.