Goldman Sachs Interview Question

Coding interview Multidimensional dp Array Mathemetical problems.