Pregunta de entrevista de Point72

Asked a 2D DP problem