Point72 interview question

Asked a 2D DP problem