COW3G WA||Code Wars 3.0

,

Problem statement:–CodeChef: Practical coding for everyone
I am getting WA for :- CodeChef: Practical coding for everyone

Can’t figure out the edge cases.

testcases were wrong…i.e.

5
1 7 11 22 33
correct answer will be 231 but my submission gives 77 and still I got AC.

Got it,bro. My logic is wrong