you give box different color represent different positive numbersYou experience round remove box box leave each time choose continuous box color ie compose k box k 1 remove k k pointsreturn maximum point example 1input box 132223431output 23explanation1 3 2 2 2 3 4 3 1 1 3 3 4 3 1 339 point 1 3 3 3 1 111 point 1 1 339 point 224 pointsExample 2input box 111output 9example 3input box 1output 1 Constraints1 boxeslength 1001 boxesi 100