Maximum Repeating Number Leetcode Solutions Cpp