10530 - Guessing Game


Difficulty : trivial

Solution Description :

Ad hoc problem

1. Find minimum guesses value(U) for response "too high"
2. Find maximum guesses value(L) for response "too low"
3. If the response is "right on" then check 
-----if guesses value greater than L and guesses value less then U then print "Stan may be honest"
-----Otherwise print "Stan is dishonest"