Neya Systems Interview Question

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