Pregunta de entrevista de Nimap infotech

js tricky question , dsa in javascript.