http://www.nxcoding.com/archives/leetcode-daily-2843-count-symmetric-integers