Adpedia interview question

How to approach the problem?