Pregunta de entrevista de Toptal

Medium difficulty algo questions. Two string parsing and one tree question