Can anyone help and let me know what's wrong in this code ||HORSES program

https://www.codechef.com/status/HORSES,vj_noob