You are part of a software engineering team working on a group project.
Each team member contributes a performance score (could be positive, negative, or zero — just like real life 😄).
Your task is to analyze impact.
For every team member, calculate the overall team performance if that member takes a break.
You are given an integer array contributions, where:
contributions[i] represents the contribution score of the i-th team member.Create a new array impact such that:
impact[i] is the product of all contribution scores except contributions[i].
Write a function that takes an integer array contributions and returns an integer array impact, where each element represents the product of all elements except itself.