Challenge #001 [H]: Guessing Game

Not sure why this one was [Hard] but ok.

http://www.reddit.com/r/dailyprogrammer/comments/pii6j/difficult_challenge_1/