Bloomberg Interview Question

dynamic programming