UBS Interview Question

Farmer, Chicken, Fox , Corn Puzzle