The problem about the switches is a simplified version of a riddle.
(It was made into a Ted-Ed video/lesson:
@RZ923 I didn't know this; this is very cool! Thanks for sharing!
@debbie I gave you the 100th reputation
@RZ923 Thank you!!
@debbie You're really famous!