JPMorganChase interview question

FizzBuzz, Polymorphism