Luciq interview question

Algorithms and design