Sponsored
Use these hints if you're stuck. Try solving on your own first.
Can we use difference array and prefix sum to check if an index can be made zero?
Solve with full IDE support and test cases