Vyond Interview Question

a coding test question for easy dynamic programming