Sollicitatievraag bij Tata Consultancy Services

Introduction Medium level DSA Question, thier optimization approach