NPTEL Theory of Computation Assignment 3