const addOne = (arr) => { // Solution code here... let x =[] ; arr.forEach(e=> { let NewEle =arr[e-1] +1 ; if(arr[e-1] !== 0){ x.push(NewEle); } }); return x ; };