Three people and are sitting on stairs one after another such that on the first stair cannot see the two above him and on the second stair cannot see the one above him. There are 2 red and 2 white hats available and each person is wearing one of them. However, no one knows the color of their hat.
The following conversation then took place between and :
I don't know which color hat I'm wearing.
At first I didn't know, but I know the color of my hat now.
If is wearing a red colored hat, what color hat is wearing?