I came across this picture and thought that this would be a fun programming puzzle to work out. (https://www.reddit.com/r/funny/comments/4hjf4y/ill_take_february_tickets_please)
(Clearly, the drop-down should simply have numbers from 0 to 10, but instead has some numbers replaced by the corresponding word, while others have been replaced by the name of the corresponding month.)
Can you figure out what bug or oversight in well-intentioned code could reproduce this exact output?
The solution has to make sense (like there ought be a correct month list, number list, etc), but should contain a weird 'bug' that messes up the enumerated results to produce this output.
The solution should show the start state, and explain the steps leading to this final state (a retro-grade puzzle).
do note that it is not as simple as odd = month, even = numbers (the "August" and "September" will fail this check).
good luck and have fun with this thought exercise!