Implementation of  Standard problems using Recursion method in C