Pergunta de entrevista da empresa Amazon

Design an algorithm to find out if an array has a pair of integers summing to10.