Wag! Interview Question

SQL challenge