I am gettig correct output and my logic gives result in dry run too but answer is not being accepted. Please tell whats wrong in my code

???I am gettig correct output and my logic gives result in dry run too but answer is not being accepted. Please tell whats wrong in my code https://ide.codingblocks.com/s/667833

hi @akshat1409 try this case
1
4
10 30 40 70
80

ans should be 10 and 70

@akshat1409 can refer