Question not clear

I am finding this question very ambigious as the statement is not clear.Kindly provide the solution to this problem as no one has solved it even on the leaderboard.

Sukhwinder, there is a video explaining about the problem and possible solution along with it in the dynamic programming section. kindly go through it once and if anything is not clear , then you can ask…