Pregunta de entrevista de Squarepoint Capital

many brainteasers, leetcode easy DP