Reservoir Cascade Maximum Yield — Coding Problem — CareerVerse