Shortest Path Problem Leetcode Playground