Edit Distance

Given two strings word1 and word2, return the minimum number of edits required to convert word1 into word2.

In one edit you may insert a character, delete a character, or replace a character, and each of those operations counts as exactly one edit. This is the classic Levenshtein distance.

Examples
Input: ["horse","ros"]
Output: 3
Hints

Edit Distance

Given two strings `word1` and `word2`, return the minimum number of edits required to convert `word1` into `word2`.