Pregunta de entrevista de Confluent

Signed NDA, mostly leetcode medium