Print LCS Dynamic Programing

i cannot find my mistake…can you please explain why my code fails/give a testcase??
MY CODE HERE
EDIT: if your code isnt working like me, try exchanging order i.e.
initially i was first checking r-1,c then r,c-1
check r,c-1 first then r-1,c

Pls wait… I m checking with your approach… Will let u know the mistakes…

I have edited your code… Try to submit now… I have made a separate function…