Return every unique triplet [a, b, c] with a + b + c = 0. Two approaches, same problem — switch between them and watch how time complexity trades off.
[a, b, c]
a + b + c = 0