Pregunta de entrevista de Wayfair

SQL leet code question from medium to advanced level