Pregunta de entrevista de Meta

SQL question that required a trick to solve it