Pergunta de entrevista da empresa Cisco

The question was to reverse the linked list and multiply all the elements