Implement node messaging and path discovery | OpenAI Interview Question