Print LCS getting one wrong ans

Code
Problem