IBM Interview Question

dynamic programming