Complete the implementation with the recursive helpers for update and query.
Implementation details:
- Initialize tree size to to handle all cases
- Handle empty array edge case
- Recursive helpers pass node index and current range
Testing checklist:
- Single element array
- Query entire array
- Update and re-query
- Multiple updates between queries
Time: build, update and query. Space: for the tree.