as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
create a programming challenge which requires a basic understanding of an algorithm.
user
write a program that takes an array of integers as input, and returns a set of the triplets whose sum is zero.

given an array of integers, your task is to write a program to find all triplets whose sum is equal to zero. for example, if the array is [3, -2, 0, 1, 3, -1], the program should output [-2, 0, 2], [-1, 0, 1], and [3, 0, -3].
assistant