Solve the zebra puzzle.
Each of the five houses is painted a different color, and their inhabitants are of different national extractions, own different pets, drink different beverages and smoke different brands of cigarettes.
Which of the residents drinks water? Who owns the zebra?
Your task is to solve the ‘Zebra Puzzle’ also known as ‘The Einstein's Puzzle’ but how you do it that depends on you, best way to solve this problem is first you solve it with your pen and paper, it will take time but it will improve your logical thinking and its provide programmatic way to solve this problem.
!!Spoiler warning!! You can learn more about this problem on Zebra Puzzle
Sign up to Exercism to learn and master C++ with 16 concepts, 94 exercises, and real human mentoring, all for free.