WA in CVOTE

https://www.codechef.com/viewsolution/32480983
can one tell me what is wrong with my code?
@ssjgz please

Consider the test input:

4 4
hlko j
acedde baab
bc dfncejnee
bwzbnojur mtwcw
bc
acedde
bc
bwzbnojur
1 Like