http://www.nxcoding.com/archives/leetcode-daily-2595-even-odd-bits