Arduino Coding for a Real World Problem

I am having difficulty creating the code to solve a real world problem I am dealing with. Imagine you have a circuit board with 25 pins numbered 1-25 that you are able to connect into and plug into an Arduino board. You need to fire a voltage through a combination of two pins in order to function a squib, however you are not sure what the correct combination of pins is. Rather than guessing and manually plugging into two pins at a time, can you code an Arduino to fire a voltage through all combinations of pins (1+2), (1+3), (1+4), (1+5) etc. until its gone through all 625 possible pair of pins? My experience in Arduino coding is limited and this may not be possible to code, but any feedback would be greatly appreciated!