Getting wrong output in lcs


Can u please tell me where I am going wrong?


fixed and added comments