Pregunta de entrevista de Notion Labs

Backend coding question. More of a machine coding round.