Quark Software interview question

Data Structures and Puzzels