TeachMint may need to group three numeric signals whose combined adjustment is zero. Given an integer array nums, find every unique triplet of distinct array elements whose values sum to 0.
Return the triplets as a list of lists. Each triplet must be sorted in nondecreasing order, and the complete result must not contain duplicate triplets. The result may be returned in lexicographic order. You may reorder nums during processing.
nums, a list of integers.0.def three_sum(nums):