Bluewolf interview question

Algorithm. System design and Code review question