Charles Schwab interview question

Leetcode Questions dealing with hashmap and arrays