All test case not passed

Ma’am/Sir
Can you please tell me which test case is not passed so that I can change my code accordingly .

Hey @1999atrijsharma
Try for this input
26
2396 25316 30085 23080 10269 5711 8306 11536 19092 6816 6305 23649 32583 5585 14193 14859 30265 18026 5528 16126 15212 25591 14789 3900 31395 25529
correct output : 224098

25529 3900 25591 16126 18026 14859 5585 23649 6816 11536 5711 23080 25316 these all should be selected so i think my answer is right can you plz elaborate which all values should be choosen

in this question both the players play optimically so inorder to maximise your result you have to minimise your opponents result and then chose the maximum of both the results .
here for your reference i am giving you the correct code link …