HubSpot interview question

Needed to provide a solution for a real-world problem