Describe the kinds of scripting and coding tasks you expect to do day to day, and how you approach them.
Implement a scheduler that orders security engineering tasks by priority while respecting dependencies between tasks. Given a list of tasks, each with an id, priority, and optional prerequisite task ids, return a valid execution order that always chooses the highest-priority available task next.
def schedule_tasks(tasks):
tasks is a list of dictionaries with keys:
id: unique stringpriority: integer, larger means higher prioritydepends_on: list of prerequisite task idsReturn a list of task ids in execution order.
If multiple tasks are available with the same priority, return them in lexicographically smaller id order.
def schedule_tasks(tasks):