Domanda di colloquio di Starbucks

It was a Leetcode medium SQL question.