Given an integer array nums, return all distinct triplets [nums[i], nums[j], nums[k]] such that i, j, and k are unique indices and the sum of nums[i], nums[j], and nums[k] is zero. The solution set must not contain duplicate triplets.
Click Run to execute sample tests.