Shortest Path Problem Leetcode Solutions In C