You are given a list of unordered CSV records describing tasks and subtasks. Each record has the format: <timestamp>,task,<task_id>,<task_name> <timestamp>,subtask,<subtask_id>,<parent_id>,<task_name> Example input: 01/01/2025,task,T1,cook dinner 01/01/2025,subtask,T2,T1,buy groceries The problem is broken into four parts: 1. Parse the input and output just the task IDs and names (ignoring subtasks). 2. Parse subtasks…