Pregunta de entrevista de Cognizant

diff b/w array and list