BlackRock Interview Question

Java question on Dynamic Programming.