N26 interview question

Java program to find first pair from array whose sum is given the target number