Sollicitatievraag bij C3 AI

Algorithm and data structure question. Probably leetcode medium one