问题 With a function, getNextIdx , I want to receive a new index for an array that depends on the current index and the value of the array at that index. I want the function to return the new index by summing the current index with the value of the array at that index, modular to the array size. #include<vector> using namespace std; int getNextIdx(int currentIdx, vector<int> array) { int jump = array[currentIdx]; int nextIdx = (currentIdx + jump) % array.size(); return (nextIdx >= 0) ? nextIdx :