golden pyramid task solved.

golden pyramid task solved with recursion.