Workiva Interview Question: Write a function(int n) that ... | Glassdoor

Interview Question

Software Engineering Interview(Student Candidate) Bozeman, MT

Write a function(int n) that prints the integers from 1 to

  n (inclusive). 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”. -- This question was altered, and they eventually asked me to make it general for an array of values and a complementary array of Strings to print if the given value was found.

Add Answers or Comments

To comment on this, Sign In or Sign Up.