Find The Frequency Of A Number In An Array Leetcode