Solution for CaesarCipher problem

Need to handle corner cases