Maximize sum with no adjacent tree nodes | Airbnb Coding Question