K-ordered lcs Dp

why is not working

I have edited your code, try to submit now…