WA in CENS20G - Help

Q- CodeChef: Practical coding for everyone

Help with test cases to check why it’s giving WA…

here is my code link-: CodeChef: Practical coding for everyone