Wrong test case! using prefixsum suffixsum concept


#1

Comment body goes here.
input: A : [ 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22802, 22... ]
my output: 4060
expected output:
4061
while doing custom input my code and expected both are giving 0.
please help