AppNexus interview question

Brain teaser logic questions.