Citi Interview Question

SQL tabling