The “FizzBuzz Test” is an interview question meant to filter out candidates that cannot program their way out of a paper bag. When I first read about this test on codinghorror, I assumed that it must be a very difficult challenge for it to filter out 99% of software development job candidates but it turns out it’s not hard, some “programmers” simply cannot code, which is why this would be difficult for them.
I have written a solution to the FizzBuzz Test. Please review and give me feedback on my solution:
And a unittest for good measure: