Goldman Sachs Interview Question

EDIT DISTANCE QUES ON LEETCODE