Mr. Yellow, Mr. Black and Mr. Brown, three best friends since kindergarten meet in a function after 5 years. The three of them are wearing either a Yellow, Black or Brown shirt.
After giving each other a friendly hug, Mr. Black says, "Hey, did you notice that we are wearing a different colored shirt than our names!"
The man wearing a Brown shirt said, "Wow I certainly did not notice that but you are right Mr. Black."
Based on this conversation, can you find our who was wearing which colored shirt?
Mr. Yellow is wearing a Brown shirt, Mr. Black a Yellow shirt And Mr. Brown a Black shirt.
When you read the conversation carefully, you will know that the person who is wearing a brown shirt agreed with Mr. Black that all are wearing the different colored shirt than their names. Now, we also know that Mr. Black is not wearing a Brown shirt and he is not wearing a color after his name as well. Therefore, Mr. Black is wearing a Yellow shirt.
The rest is as simple as pie. M. Yellow is wearing Brown because he cannot be wearing Yellow and then Mr. Brown is wearing Black.