Leetcode 245. Shortest Word Distance III | Hello Interview