Design a task tracking system that stores tasks by unique IDs, supports updating task metadata, and retrieves task details on demand.
Implement the TaskManager class:
-
TaskManager()Initializes the task manager with an empty task store. -
String addTask(int timestamp, String name, int priority)Adds a new task with the givennameandpriority. Returns the unique ID assigned to this task in the format"taskId<n>", wherenis a sequential counter starting from1. Tasks with identical names and priorities are allowed; each receives its own unique ID. -
boolean updateTask(int timestamp, String taskId, String name, int priority)Updates thenameandpriorityof the task identified bytaskId. Returnstrueif the task exists and was updated, orfalseiftaskIdis not found.
