Question d’entretien chez DoorDash

It was binary tree max sum