Barclays interview question

Basic FizzBuzz like question to prove basic programming competency