it is showing wrong answer for one test case. please help to find the problem.
solution - https://ide.codingblocks.com/s/138126
problem - https://online.codingblocks.com/app/player/43644/content/19478/4796
Test case not passed
@kushal1998 https://ide.codingblocks.com/s/138135
Check this. You do not have to initialize max with 0 since the array elements can also have negative values.