Java My Code Is Giving A Wrong Answer In Codechef Stack Overflow

Java My Code Is Giving A Wrong Answer In Codechef Stack Overflow