K -ordered LCS doubt

Hi,
Any hint please.

hello @vatsal50 this is the question of 3 dimensional dp .
have you thought of any logic for this ?
we can discuss then ?