Sollicitatievraag bij ClearMotion

How would you optimize the time complexity of your algorithm?