Insert a value into the center of an array.
Write a function called insertShiftArray which takes in an array and the value to be added. Without utilizing any of the built-in methods available to your language, return an array with the new value added at the middle index.
The length of the array affects the time and space 1 to 1.
- !()[assets/ShiftArray.png]