Given two strings word1 and word2, return the minimum number of operations (Insert, Delete, Replace) to convert word1 to word2.
"horse", "ros"3"abc", "abc"0Base: empty string needs length insertions/deletions. If chars match, copy diagonal. Else take min of insert (left+1), delete (up+1), replace (diag+1) — each operation costs 1.