Uber interview question

Maximum Path weight and queue topological sort