Yahoo Interview Question

Please write a function to figure out the edit distance of two given strings.