Pocket Gems Interview Question

dynamic programming question, System Design, OOD