Unable to figure out reason for WA for this QUESTION

i need help figuring out some test cases for which my program is giving wrong answer

Sorry asking doubts from live contests is not allowed. Please mark the doubt as resolved and ask it again when the contest is over.