Shortest Distance After Road Addition Queries I | Leetcode 3243