Pergunta de entrevista da empresa Toptal

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