CACI International Interview Question

leet code problem two sum