Shopify interview question

How would you implement this? (a few different things)