Question isn't designed carefully


#1

I solved this question using the tabular form and thus made an array of the same size as given in the solution. But I am getting MLE don’t know why!