Question d’entretien chez Amazon

Write the a function that counts all pairs in an array.