Point72 Interview Question

Asked a 2D DP problem