Guessing Game(Long challenge)

My solution - CodeChef: Practical coding for everyone
Question - CodeChef: Practical coding for everyone
I have done this question in that way such that it should give me 75 points(as written in editorial) but I don’t understand what is wrong in my solution. Plz. help