prepared a structure for towers of hanoi problem
solved the towers of hanoi problem - basic solution