LCS with 3 strings

code is showing wrong output,i think that there is a problem with order of filling?