Microsoft Interview Question

Problem-solving, Trees, hashmaps, two pointers.