Leetcode Hashmap Based Problems After Having