Problem 319 · Medium
Count bulbs that are on after n rounds of switching.
Open the interactive visualisation