input: Write a python function to reverse a linked list.
  assert reverse_linkedlist([1, 2, 3, 4, 5]) == [5, 4, 3, 2, 1]
  assert reverse_linkedlist([10, 20, 30]) == [30, 20, 10]
  assert reverse_linkedlist([7, 14, 21, 28, 35]) == [35, 28, 21, 14, 7]
output: def reverse_linkedlist(lst):
      return lst[::-1]