Pergunta de entrevista da empresa Indeed

find if the array contains two integer that can be added up to become X