Pergunta de entrevista da empresa Tata Consultancy Services

question about array and linked list