Pergunta de entrevista da empresa Kry

Basically explaining the code I did