WA in Interleaving and blocks (ZCO20002)

I have tried multiple test cases to find where it doesnt work and haven’t been able to find even one. It fails in subtask 1 itself so can someone find a simple test case where it fails.
https://www.codechef.com/viewsolution/28486677