Oracle interview question

It was based on concept prefix sum