Print lcs dynamic programming

I have written code as per instructed in hint video but
when dp[x-1][y]==dp[x][y-1]==dp[x][y],then how to write the condition i could not undertsand.
how to shift x,y to upper of it as x-1,y

Please take a look at this code if you are having issues with the transitions.

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.