Print LCS problem

Here’s my code -

Can you point out what can be the issue? My solution is not accepted.