LeetCode Bulb Switcher (https://leetcode.com/problems/bulb-switcher/)
Asked in the technical interview stage. Author replied that the LC mentioned in the post was this problem.
There are n bulbs, initially off. Round i toggles every bulb whose number is divisible by i. Return the number of bulbs that remain on after all n rounds.
Implement bulb_switch(n), where n is an integer, and return an integer.
def bulb_switch(n):