5. Algorithm(15)