Pregunta de entrevista de Levelset

Problem-solving, data structure, they gave me a problem about making an undo/redo feature.