Exploring Tower of Hanoi problem.