Vestmark interview question

Given an array find pairs that add up to a given sum, Basic Java and oops questions