ServiceNow interview question

Shortest Path between two Nodes( Graph BFS)