a man has a small boat and he has to get
across the river. he can only carry one item at a time.
the dog will eat the chicken if left unattended while he crosses.
the chicken will eat the corn feed if they are left unattended.
how does he get all three items across safely?
let see how is the way you would do it ...