Cognizant interview question

diff b/w array and list