HubSpot Interview Question

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