https://www.codechef.com/viewsolution/21655714
Help me out here
thanks mate…but the issue was really with the if…else conditions.But your suggestion was helpful
You can use stress testing with anyone accepted code in such a case. I have just tested your code against my accepted code and found this test case.