The function tries to transform the array into a pendulum form. Like the input is: The function tries to transform the array into
The function tries to transform the array into a pendulum form. Like the input is: The function tries to transform the array into