Implement a LinkedList function.
Note that all inputs will be valid. That is, deleteFirst and deleteLast will never be called on an empty list, and the value searched for with indexOf will always exist within the given list.
list.addFirst(10) ➞ "[10]"
list.addLast(20) ➞ "[10, 20]"
list.addFirst(30) ➞ "[30, 10, 20]"
list.deleteLast() ➞ "[10, 20, 30]"
toString() function that's supplied in the test tab! Your submission will fail if you don't.