A simple java program that solves the towers of hanoi problem