Frequency Of The Most Frequent Element Leetcode Solution