K-Ordered LCS problem doubt


what is the error in this code

hi pritika
there was small error in your code


i have added comments and it works perfectly fine now

what is the logic of this solution