Pergunta de entrevista da empresa Itlize Global

How is this code wrong?