Cognizant Interview Question

diff b/w array and list