my logic was this:
1.make 3 maps;one to store names and country,one for chefs and votes and another for country and votes.
i then iterate starting from the last element in the map and check if the 2nd last element has the same number of votes and so forth as the last one as we consider the country with the lexicographically smaller name among them to be a winner.
It passes all example cases however it fails when i submit it.