Member Engagement Tier by Visit-Purchase Conversion - Coding problem | OneNoughtOne