Given the head of a linked list and an integer val, remove all the nodes of the linked list that have a value equal to val, and return the new head of the list.
Click Run to execute sample tests.