HubSpot interview question

What would your initial steps be in building out this function?