Tell me about a time you solved a data structures and algorithms problem involving array manipulation.
For this coding exercise, implement a function that applies a sequence of range updates to an array and returns the final array. Each update is a triplet [start, end, delta], meaning add delta to every element from index start to end, inclusive.
apply_range_updates(n, updates)
n: size of the arrayupdates: list of [start, end, delta] operationsdef apply_range_updates(n, updates):