
So it’s like there is a function called d r e a m ( ) dream(), and we are just calling it in itself. Leonardo had a dream, in that dream he had another dream, in that dream he had yet another dream, and that goes on.
HANOI TOWERS RECURSION COUNT JAVA MOVIE
It will be easier for those who have seen the movie Inception. When a function calls itself, it’s called Recursion.

Hence this puzzle is often called Tower of Brahma puzzle. These priests acting on the prophecy, follow the immutable rule by Lord Brahma of moving these disk one at a time. According to a prophecy, when the last move of the puzzle is completed the world will end.

These disks are continuously moved by priests in the temple.

There is a story about an ancient temple in India (Some say it’s in Vietnam – hence the name Hanoi) has a large room with three towers surrounded by 64 golden disks. Tower of Hanoi game is a puzzle invented by French mathematician Édouard Lucas in 1883.
