Count Good Numbers Leetcode Playground Java