WA in CAOS1

this is the link to a question in which i am getting WA

question

my solution is
answer

can someone plz tell where am i wrong or any test cases plz

got it…no need to discuss any more