number of triplets sum to 0

Gives how many triplets in a given array sum to zero.direct application- n^3 time dependance