In all likelihood that video just did a bunch of edits. One quicker was of doing it is laying one shot over the other and then using the razor tool to cut holes in the shot on top. If you want to do it back on forth in a fixed number of frames you can use the blink filter. You could even keyframe the on/off duration to change the rate of cutting.