Fix SRM 147, Div 2, Problem CCipher

- previously without system test checks
- plus length of alphabet, in case of negative shifted index