Getting wrong answer in all three test cases

wrong answer in first
and MLE in other 2

hi @tusharbajaj200153_02bc6c0c5583c81d,
try this
3
1 2 3