Tell me about a time you were asked to write a script and how you approached the problem from requirements to working code.
For the coding portion, implement the dependency-ordering component. Given a dictionary mapping each requirement to its prerequisite requirements, return a deterministic valid execution order, or [] when the dependencies contain a cycle.
Use order_requirements(requirements); the input and output are dictionaries and lists of strings.
def order_requirements(requirements):