Change Light Bulb Algorithm-1 Sequential tasks without repetition. Watch our friend Jumping Jack executing the tasks. Sometime the bulb will burnt. Then, the end changes according with the bulb state.