American Express Interview Question

basic sum 2 num in array