Dassault Systèmes interview question

Typical Fizz Buzz style algorithm puzzles