HubSpot Interview Question

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