Shopify Interview Question

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