Top k most frequent no

this is a solution from GOG ; but I cant understand line no 13 of my code IDE