Pergunta de entrevista da empresa Tridhya Tech

Given an array of integers, return all the triplets [a, b, c] such that a + b + c == 0. Example: Input: nums = [-1, 0, 1, 2, -1, -4] Output: [[-1, -1, 2], [-1, 0, 1]]