This is the same code taught in DP lecture but is only passing 1 test case
dry run your code on the following testcase:
10
41 67 34 0 69 24 78 58 62 64
Expected Output:
12979
Your Output:
2747
dry run your code on the following testcase:
10
41 67 34 0 69 24 78 58 62 64
Expected Output:
12979
Your Output:
2747