Update recursive solution.
Consumer and Producer solution.