Pergunta de entrevista da empresa Amazon

Basic-average difficulty LeetCode SQL question