function insert(arr, item, index) {
let newArr=[];
arr.forEach(ele=>newArr.push(ele));
newArr.splice(index,0,item);
return newArr;
}
function insert(arr, item, index) {
let newArr=[];
arr.forEach(ele=>newArr.push(ele));
newArr.splice(index,0,item);
return newArr;
}