BMO Financial Group Interview Question

Leetcode problem that involves dynamic programming