Arrays-Target Sum Triplets(triplet)

https://ide.codingblocks.com/s/52782
it is not passing all test

sort the array before running the loop.

@Shu762bham dont use three for loops it will give you TLE instead try to optimize the code. Hint: use 2 pointer technique.

@Shu762bham to optimise the code use two loops instead of three.