Blooming Tree 4 (Optimized)