Smallest String Starting From Leaf Leetcode Two Sum Problem Using Hashmap