Pregunta de entrevista de Accenture

Javascript basic questions and one DSA question