Neya Systems interview question

It was an algorithm question from leet code based on hash maps