Edit Distance - calculate the minimum number of operations required to transform one string into another.
Asked in the Round 1 - online screening test stage. Second problem in the online screening test.
Implement def edit_distance(source, target):. Return the minimum number of single-character insertions, deletions, or substitutions required to transform source into target.
Both inputs are strings. Return an integer. A substitution costs one operation, including changing one character into another.
def edit_distance(source, target):