Pocket Gems Interview Question

Dynamic programming