Pregunta de entrevista de DoorDash

It was binary tree max sum