Brackets All Over

Kindly check my code and rectify my code

You are not storing the answer for the recursive function in line 27 in the dp array.

Give ur updated code