ServiceNow Interview Question

DSA based on Dijkstras LCA on Trees