Pergunta de entrevista da empresa Keysight Technologies

Write a code to reverse a linked list.