Even tree solution