K ordered longest common subsequences

sir why i am getting wrong answers for this code…i’ve checked it so many times please help…?

I have edited your code… Try to submit it now…