Pergunta de entrevista da empresa Phenom

Problems based on algorithms