Attentive AI Interview Question

Three Sum Problem Generating a random Function with Some special requirements