401 data structures and algorithms code challenges
Write a function called insertShiftArray which takes in an array and a 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.
I wasn’t alowwed to use the .split() method so i created a loop that split the list in 2 and then added the lists back to gether with the new value in the middle.