Atcoder 213, problem - C (Help)

PROBLEM - C
I am getting WA on only one test case, what I am doing wrong.
please help;
MY Submission