Describe a time you optimized a brute-force approach to a range-update problem using tree-based structures at Tata Digital.