Algorithm to unscramble text when we know the original message