K ordered lcs problem

mam why my code is not working

hello @YASHMATHURIA123
here use <=

image

sir its still give wrong answer

dont take input as string ,take it as integer.

ur updated code->