C - Counting Ones

DP, Counting, Bits, Easy