Pregunta de entrevista de Dynamic Solution Innovators

The codes were asked from leetcode.