Dyson interview question

Medium leetcode on dynamic programming & more