Shortest Word Distance

给一个字符串数组, 并给出两个words, 求最短距离. 直接用map