Nextiva interview question

2leetcode problem medium and LLD - taskmanager and browser history