Pregunta de entrevista de Tech Mahindra

Question based on JavaScript for accessing form element using Java script.