solved funny encryption and rotating sequences