var numberarr2 = numberarr.map( function(value) {
return value - 1;
} );
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 ;
};