Caesar cipher decryption
Your task
Implement Caesar-cipher decryption. Given ciphertext text and an integer shift, recover the plaintext by shifting each alphabetic character BACKWARD by shift positions (wrapping within the alphabet), preserving case. The shift may be any non-negative integer (e.g. larger than 26). Non-alphabetic characters pass through unchanged.
Examples
caesar_decrypt(text: str, shift: int) -> strExample 1
Input
caesar_decrypt("KHOOR", 3)Output
"HELLO"