Francium Tech interview question

ROUND 2 To find a valid pair within a given array with some conditions