Vidiemme Interview Question

Dinamic programming, working on intervals