Safeway Interview Question

Design questions, How you implement rewards for customer