Boost Media interview question

Nothing unexpected, just behavioral stuff, basic data structures and algo.