Solution to crypto-square exercise