Chargebee interview question

Build a specific pattern using ES6 generators.