Pergunta de entrevista da empresa Uber

SQL question was in a way more difficult than typical Leetcode Hard question