NPTEL Theory of Computation Assignment 1 Answer