Weir Group Interview Question

A variant of the two-train problem was asked.