solve one edit distance