http://www.spoj.com/problems/RLCIPHER/