code:- https://ide.codingblocks.com/s/288150
logic:- consider an array i is at starting and j at end…if arr[i] > arr[j] then add arr[i] in window else add arr[j] then check max of m and window and store it in m…then check if window is less then 0 then make window 0
Dont know where it could go wrong