The LCS program is not giving desired output. Can someone take a look into the program and make it correct.