http://www.nxcoding.com/archives/leetcode-daily-3272-count-the-number-of-good-integers