Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Are the constraints small enough for brute force?
We can use three loops, each iterating through the array to go through every possible triplet. Be sure to not count duplicates.