Question d’entretien chez Microsoft

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