Pregunta de entrevista de C3 AI

2-D DP problem was asked.