Getting WA in 2 tc

I am getting WA in 2 tcs of this question.
The link of my code is :