It is becoming very common place before an employer will take the time for an interview to make sure that a candidate has the skills that are needed to actually program (verses simply passed some certification exams but still can’t apply their programming knowledge practically). One of the simplest tests is called the FizzBuzz test. This test is as follows:
Write a program that prints the integers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”.
There are multiple ways to solve this problem. Focus on the way that makes the most sense to you. Chances are that they will have you explain your code so make sure that it is YOUR code so that you can explain it. Finding an answer online that is short and sophisticated but that you can’t explain is a really good way to botch an interview!