You're given force vectors in 3D space. Each force has three components: , , and . A system is in equilibrium when the sum of all forces equals zero in all three directions.
Your task: determine if the forces balance out. If the sum of all components is zero, AND all components sum to zero, AND all components sum to zero, output YES. Otherwise, output NO.
Before reading further, think: how would you model a 3D vector in code? What data does each vector need? How do you add vectors together?