Name the vulnerability for the following code:
void changeGrade(char grade[], int numGrades)
{
int i;
cout << "Which grade would you like to chage? ";
cin >> i;
if (grade + i > grade + numGrades)
cout << "Invalid grade!\n";
else
cin >> grade[i];

}