Highest frequency using hashing

sir I tried this question of highest frequency using hashmap but it is giving wrong answer for 2 test cases. link:https://ide.codingblocks.com/s/124342

@khushi91200 this is because of the fact that you’re not including equalvalent case
if(node.second>=maxim)