LinkedIn interview question

Edit distance from leetcode