That's actually the origin of FizzBuzz! A puzzle invented to weed out the perplexing multitude of CS graduates who apparently cannot program.
https://blog.codinghorror.com/why-cant-programmers-program/