function findIdx(str){ let arr = str.split(' ') let result = []; for(let i = 2;i < arr.length;i++){ if(arr[i] < arr[i-1] && arr[i] >= arr[i-2]){ result.push(i) } } if(result.length === 0){ return -1; }else{ return r...