Adding iterative solution for 2-2.