Aspect Capital Interview Question

write a function to give the edit distance between two strings