Coding with Squared Strings

A squared string has n lines, each substring being n characters long: For example: s = "abcd\nefgh\nijkl\nmnop" is a squared string of size 4. We will use squared strings to code and decode tex...