Royal Cyber Inc. interview question

Hash map working