What test cases is my code failing for this problem?

here is the problem-https://www.codechef.com/problems/OBTTRNGL
here is my code-https://www.codechef.com/viewsolution/53821306