Shortest Path Problem Leetcode Solutions Two