Meta interview question

leetcode hashmap simply question and a follow up