ACI Worldwide Interview Question

Find the index of array summing up with target.