Pergunta de entrevista da empresa Block

Medium leetcode problem and advanced SQL.