Pregunta de entrevista de Saccade Capital

The coding part is related to the data structure and algorithm.