Cses Problem Set Counting Bits Java