Amazon interview question

create a function type fizz buzz