Edit distance dp

Ques:https://practice.geeksforgeeks.org/problems/edit-distance/0

Answer:https://ide.codingblocks.com/s/47606

Input:
84 87
lrbbmqbhcdarzowkkyhiddqscdxrjmowfrxsjybldbefsarcbynecdyggxxpklorellnmpapqfwkhopkmcoq hnwnkuewhsqmgbbuqcljjivswmdkqtbxixmvtrrbljptnsnfwzqfjmafadrrwsofsbcnuvqhffbsaqxwpqcaceh

Its Correct output is:
78

And My Code’s output is:
68
Please check the bug

I have made changes to the code and saved it on
https://ide.codingblocks.com/s/47755.
Your mistake was when str1 is empty the total operations you should perform will be equal to str2.length()

Thank you so much sir