Microsoft Interview Question

Leet code Medium question Edit distance