Write a function called insertShiftArray which takes in an array and a value to be added. Return an array with the new value added at the middle index. Do not use built in methods of your language to solve the problem for you.
The Big O for space and time in this challenge is O(n) -- the length of the array.
N/A For this challenge