Leetcode Check If Number Has Equal Digit Count Python String To Int