Pregunta de entrevista de Carousell

SQL question to write query with joins