Pregunta de entrevista de BAE Systems

Basic programming task to implement an algorithm