Leetcode Hashmap Based Problems With Bowels