IPL question 1D dp

My code is running for all the custom test cases but it is not getting submitted.

Hi Aman please share your code and Hackerblocks link of the question.
Thank You