MediaMath Interview Question

Questions to test logic.