sub array who has max sum
number of 1 from 1 to n