Discuss recursive function with examples