v0.1
Refactor code: Refactor Mark/Unmark task function Marking/unmarking tasks during initialization will cause output to be printed. Checking whether we are marking/unmarking task in initialization phase before deciding on the need for output will solve the issue. Let's create a Boolean variable isInitialize to check if the function is called in the initialization stage.