Acquco interview question

Question-related to hashmap and SQL (you can google stuff)