Task Management System
Complete the function below. The function receives the full standard input as a single string and must return the exact standard output lines for the described problem.
Original prompt
Problem: Task Management System (Level 1)
Implement a simple task management system that supports adding tasks and retrieving the list of “current tasks”.
Requirements
Add task: create a task and store it in the system. Get current tasks: print the tasks currently stored in the system (in the required output format). Task model (suggested)
Each task contains at least:
taskId: unique identifier (int or string) taskName: string startTime: integer endTime: integer I/O (abstract) The input is a sequence of commands (e.g., ADD_TASK ..., GET_TASKS). For each GET_TASKS, print the task list in the required format.
Constraints
Number of tasks: up to 1e4. Sample test ideas Add 1 task then list; output contains that task. Add multiple tasks then list; output contains all tasks. List with no tasks; output is empty. Task names with spaces/special chars; formatting is correct. Overlapping task times; Level 1 does not require conflict validation.
Complete solveTaskManagementSystem. It has one parameter, String input, containing the full stdin payload. Return the stdout payload as an array of lines, without trailing newline characters.
1Example 1
The returned string must match the expected standard output for the sample input.
Constraints
Limits and guarantees your solution can rely on.
Use the limits and requirements stated in the prompt.