For most lines, we simply process this:
x;
Exchanges the pattern space (current line) and hold space (previous line)
Then sed's default behavior is to print the pattern space (previous line)