Ex Libris Interview Question

Data structure question (theoretical)