I know you’re joking, but apparently it was given as a programming problem in a contest on at least one occasion.
See here: http://www.njohnston.ca/2014/08/obvious-does-not-imply-true-...
See here: http://www.njohnston.ca/2014/08/obvious-does-not-imply-true-...
It has been asked in real interviews
The solution to this problem is given by de Bruijn sequences: https://en.wikipedia.org/wiki/De_Bruijn_sequence