Scott Logic Interview Question

Data structures, Logical Questions