Sollicitatievraag bij Tata Consultancy Services (North America)

Algorithm, first one was from leetcode, and complexity