Capital One interview question

Some hashmap leetcode easy like two sum