Check if two nodes are same depth but different parents.
BFS track parent+depth for x and y; compare once both found.
One pass BFS is enough — store two (parent, depth) pairs.
Review BFS family checks via real-time interview help.