Pergunta de entrevista da empresa Odessa

given two array and a number N, find the pair from arrays whose sum is closest to N