Pregunta de entrevista de Oracle

2 dsa question related to prefix sum and array