Problem 2960 · Easy
Scan the batteries left to right, testing each one still positive and draining every later one by one.
Open the interactive visualisation