Number of 1 Bits - Leetcode 191 - Python