Hashing: top K frequent elements — Python practice — Live Code Tutor