LeetCode
One Edit Distance
Click
here
for an explanation.