C3 AI Interview Question

2-D DP problem was asked.