Amdocs Interview Question

A question that was close to the two sum question in leetcode