Max sum query doubt

please provide me the exact solution code working one

hello @rohit_1906
pls refer this->

can you please tell me whats wrong in this … like fix it…cause its giving wrong answer for few test cases


add one more if statement inside this function.
for the condition ss >se
in this case simply return.

also use long long in place of int (check contraint section)