DataRobot Interview Question

Implement an algorithm to solve the presented problem, taking into account computational efficiency and memory usage.