Your task is to come up with a program that identifies all the triplets in an array whose sum is equal to a given target value.

Interview question asked to Machine Learning Engineers interviewing at Walmart, Babylon Health, Zoox and others: Your task is to come up with a program that identifies all the triplets in an array whose sum is equal to a given target value..