Print LCS problem


why answer is wrong ??

hello @mandeepchohan96

it is not working even on ur provided input.
image

the idea is to first prepare lcs dp table and then use that table to get lcs string.
refer this ->article