https://leetcode.com/problems/edit-distance/
dp[i][j] = min(dp[i-1][j-1], dp[i][j-1], dp[i-1][j]) + 1