<prompt> Given an array of three-dimensional points, calculate the center of mass.1, 2, 3, 2, 3, 4, 3, 4, 5, 4, 5, 6  <response>: The center of mass can be calculated using the formula x x1 x2 ... xnn, y y1 y2 ... ynn, and z z1 z2 ... znn.Given the input 1, 2, 3, 2, 3, 4, 3, 4, 5, 4, 5, 6:- x 1 2 3 4 4 2.5- y 2 3 4 5 4 3.5- z 3 4 5 6 4 4.5Therefore, the center of mass is 2.5, 3.5, 4.5. 