Block Interview Question

Medium leetcode problem and advanced SQL.