Adpedia Interview Question

How to approach the problem?