Capital One interview question

Technical was a hashmap question