Moon Active Interview Question

Advanced SQL with sub query and join together