Reservoir Cascade Yield Sum — Coding Problem — CareerVerse