Recursion ALgo In Prog