CACI International interview question

leet code problem two sum