Pregunta de entrevista de Meta

They asked me to run the code in SQL.