Numbrs Interview Question

Dynamic programming problem on HackerRank platform.