balena interview question

Flatten a nested array, fizzbuzz