Implement a Caesar cipher.
Asked in the onsite coding stage. Implement caesar_cipher(text, shift), returning a new string where each ASCII letter is shifted forward by shift positions, wrapping within A-Z or a-z. Preserve letter case and leave digits, spaces, and punctuation unchanged. Negative and oversized shifts are valid.
text and integer shift.def caesar_cipher(text, shift):