Oracle Interview Question

2 dsa question related to prefix sum and array