Pinterest interview question

Tree/graph traversal question and optimized best route path