HubSpot interview question

2 system design questions and 1 coding question.