NPTEL Design and analysis of algorithms Assignment 4 Answer