Prints all the triplets in an array that sum upto zero.