Efficient Calculation of number of set bit in a no.
Adding max sub array of 0 and 1 DP