Number of moments where all turned on bulbs are shined
I came across the following problem. the problem already answered above link. But the solution is a bit hard fo