Rail Fence Cipher - Scala | SlaveCode