Pregunta de entrevista de Uber

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