UKG Interview Question

Given an array, find no of pairs whose sum is equal to x