Maximum Repeating Number Leetcode Solutions Python