Camlin Group Interview Question

Coding puzzle about data structures and operators