LeetCode 1304 Find N Unique Integers Sum up to Zero https://leetcode.com/problems/find-n-unique-integers-sum-up-to-zero/
This is an Easy problem and after a few minutes you might come up with different ways to solve it.
If interested in my approach and comments, I invite you to read the following post in my blog:
https://www.johncanessa.com/2021/10/12/find-n-unique-integers-sum-up-to-zero/
Keep in mind that one of the best ways to learn is to read and experiment. Remember that practice makes perfect.
Enjoy;
John