Given an array, find 3 elements such that [a + b + c] = 0.Two solutions are possible: Iterative method and Two-pointer approach.In the iterative method, we use three nested loops to find the combinations.In the two-pointer approach, we sort the array and use two pointers to find the combinations.