Bevi interview question

SQL Question + System Design