結果 : counting bits hackerrank solution in java example