iCIMS Interview Question

Dynamic Programming problem