Given strings word1 and word2, return the minimum number of single-character operations (insert, delete, replace) to convert word1 into word2.
Input
word1word2Output: the minimum operation count.
horse ros
3
intention execution
5
Run your code against the sample tests, or Submit to run the full suite.