Print lcs in dp

giving runtime error

Damul, there were few errors in your code, I have modified your code. If you didnt understood the changes made, plz let me know,