could u please verify my solution and tell me examples of some test cases which would produce the wrong answer when I would test them on my code. The link for the code is: https://ide.codingblocks.com/s/405399
Query regarding the solution
for test case
10
22 50 16 13 8 41 25 43 8 7
the correct answer will be 154
debug for this