Pregunta de entrevista de phagos

A live coding interview and then a code comprehension in javascript exercise