Added recursive solution to problem D'