update string_distance issue.

Add dynamic programming solution