Dynamic programming-edit distance problem

I tried it with the reverse approach calculating from first word to last word,memo approach,but i cant generate memo table.