Sollicitatievraag bij 1plusX

Algorithmic question that required a monotonic queue for the optimal solution.