Cognizant Interview Question

What are Recursive functions? what is static & dynamic memory? Write a code for Armstrong and factorial.