Pregunta de entrevista de Microsoft

How to create a Cesar's encrypt/decrypt function for a given string and offset.