DoorDash Interview Question

Count the differences between trees