Find Closest Node from Two Nodes | Leetcode 2359 Explained with Java Code