EVENT problem code not working

Hi, my submission for the EVENT problem is giving WA: https://www.codechef.com/viewsolution/36866615

Could someone please help me with some test cases where my code fails so I can understand which edge cases am I not covering?

Thanks!

Someone please help…