Minimum Distance Between Two Nodes Leetcode Problems