Pregunta de entrevista de Kry

Basically explaining the code I did