Clear Recursive solution