Leetcode Hashmap Based Problems With Yahoo