Spider Problem
Ant Problem

Code is not working; the answer is None instead of a tree-like list.
Frog Problem
Palindrome Problem
Revised Competition Code