Pergunta de entrevista da empresa ORMAE

Coding questions, Machine Learning algorithm pseudo answer