Resolvido exercicio 6