Pregunta de entrevista de Kunato

Backtracking question Dynamic programming question