Error in k-ordered lcs

I have edited your code… Try to submit now…