Not able to clear test case

which case am i missing here

Failing for testcases like
3
1 1 2
4
1 1 1 2