Headway (NY) Interview Question

Standard Leetcode SQL querying, average difficulty