Pregunta de entrevista de Ciena

questions from Codility, mostly from the software engineering side