Pregunta de entrevista de Cognizant

mostly in javascript related questions