Mdp tourist buttom up wrong answer

I am getting wrong answer in this question when trying to solve using buttom approach.

hello @mkg825412gir

how u are applying bottom up here.
can u please explain ur logic?
specially this line ->

		dp[i][j][k]=max( dp[i-1] [j] [k-1] , max( dp[i-1] [j] [k] , max( dp[i] [j-1] [k-1] ,dp [i] [j-1] [k] ) ) );
	          

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.