Your question is Dependency Chain Status Query. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Can you explain how to build a dependency chain and query the status along that chain?
Implement the task as a function that returns every prerequisite of a target node followed by the target, with each node's status. The dependency graph is directed from a node to its immediate prerequisites, and the graph is guaranteed to be acyclic.
Input: a dependency dictionary, a status dictionary, and a target node. Output: a list of dictionaries in prerequisite-first order, each containing node and status.
def dependency_chain_status(dependencies, statuses, target):