Chargebee Interview Question

Build a specific pattern using ES6 generators.