AppNexus interview question

No difficult problems, just some basic programming practice.