created a simple snippet of code to show how it works
Solved Hanoi Towers problem in Ruby