Frequency Of Most Frequent Element Leetcode