you give integer array coin length n represent n coin the value ith coin coinsi you value x choose n coin value sum xReturn maximum number consecutive integer value coin start include 0note multiple coin value Example 1input coin 13output 2explanation you follow value 0 1 1you 2 consecutive integer value start 0example 2input coin 1114output 8explanation you follow value 0 1 1 2 11 3 111 4 4 5 41 6 411 7 4111you 8 consecutive integer value start 0example 3input num 141031output 20 Constraintscoinslength n1 n 4 1041 coinsi 4 104