Recursion solution added