Domanda di colloquio di HubSpot

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