Leetcode Shortest Path Problem Gfg