Pergunta de entrevista da empresa Cambium Assessment

Write a function to do a simple Caesar cipher by 1 character offset. Handle uppercase letters, lowercase letters and numbers separately.

Resposta da entrevista

Sigiloso

17 de mar. de 2023

I used C# and did some int casting to get the char value to a number, add an offset and modulo the result to wrap back around to the start. I also extended it to work for an arbitrary number offset instead of the original prompt of just 1.