Oracle Interview Question

It was based on concept prefix sum