input: Write a python function to encrypt a string using Caesar Cipher.
  assert caesarCipherEncrypt("abc", 2) == "cde"
  assert caesarCipherEncrypt("xyz", 1) == "yza"
  assert caesarCipherEncrypt("Hello World", 3) == "Khoor Zruog"
output: def caesarCipherEncrypt(text, shift):
      result = ""
      for char in text:
          if char.isalpha():
              shift_base = 65 if char.isupper() else 97
              result += chr((ord(char) - shift_base + shift) % 26 + shift_base)
          else:
              result += char
      return result