Toptal Interview Question

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