Attentive.ai Interview Question

Three Sum Problem Generating a random Function with Some special requirements