Aspect Capital interview question

write a function to give the edit distance between two strings