Pergunta de entrevista da empresa DoorDash

Tree related LC hard for technical round, two coding rounds where the code was written out and you need to fix the bugs/add new functionality