HubSpot interview question

Coding question: find all pairs from an int array equals to a target.