All Pair Shortest Path Leetcode Javascript Practice