Prior to asking my questions I would ask you to write your number in a binary
base (4 bits)
and then add 3 parity check bits to
create a 7- bit Hamming word.
If you do not know how to do it - http://users.cs.fiu.edu/~downeyt/cop3402/hamming.html
will provide the necessary guidance.
Then I will ask you (in any order) my
7 independent questions:
Is the leftmost bit 1?
Is the 2nd from left bit 1?
Is the rightmost bit 1?
You can either answer truthfully or
No problem – 2^3 combination will
indicate the erroneous place (7 possibilities) or
will warrant the right data.