Caesar cipher decryption

Write codeEasy12 min

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) -> str
Example 1
Inputcaesar_decrypt("KHOOR", 3)
Output"HELLO"