Shorten Arduino code where Outputs are repeated to go High and LOW

could make press take an array and count..

const int relayPins[] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, A0, A1};
int relayStates[] = {HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH};
int delayTime = 100;

void Press(int N[], int NumPins)
{
  Serial.println("pressing pins");

 for (int i=0;i<NumPins;i++)
 { 
   Serial.print(N[i]);
  digitalWrite(N[i] + 1, LOW);
  delay(delayTime);
  digitalWrite(N[i] + 1, HIGH);
  delay(delayTime);
}
}

void setup() {
  Serial.begin(115200);
  for (int i = 0; i < 14; i++) {
    pinMode(relayPins[i], OUTPUT);
    digitalWrite(relayPins[i], relayStates[i]);
  }

int pins[4] ={4,3,2,1};
Press(pins, 4);

}

void loop() {
}

can test here...