DoorDash interview question

Count the differences between trees