adding string distance puzzle solution