Pregunta de entrevista de Micro1

there was a coding question for JavaScript (node.js) language