The quick and dirty solution for Hanoi Problem