Pregunta de entrevista de Phenom

Problems based on algorithms