Print lcs one test case failed

test case 2 is giving wrong answer despite having correct answer after downloading the test cases.
code link is - https://ide.codingblocks.com/s/162673