Recursion is a function that calls itself. It is easy to write in the program, but it requires a lot of memory space and execution time. The advantage of using recursion is that developers can avoid unnecessary calling of functions by substituting with iteration.

BY Best Interview Question ON 06 Feb 2019