Answer is coming but test cases are not being passed please tell me the mistake

@anantgovil123
1
8
20 4 1 2 3 4 2 10
ans 5
yours 2