added final solution to the cat, the parrot, and the bag of seed problem