Maximum Repeating Number Leetcode Python