Sponsored
Use these hints if you're stuck. Try solving on your own first.
Calculate the prefix sum array of <code>nums</code>, <code>k</code> times.
Solve with full IDE support and test cases