Pregunta de entrevista de CPT Network Solutions

I was requested to do a Code Challenge via Github