Compute the Levenshtein (edit) distance between two strings using dynamic programming.
Asked in the Online technical interview stage. Second DSA question, described as a Levenshtein distance DP problem.
Implement edit_distance(s, t), which returns an integer representing the minimum number of single-character insertions, deletions, or substitutions required to transform s into t.
def edit_distance(s, t):