This is a transposition cipher where the message is written in a zigzag pattern across a grid of a given number of rows.