Leetcode Hashmap Based Problems With Revocable Living