Maximum Repeating Number Leetcode Javascript 30