Capital One interview question

Remove node with value larger than a certain value in linked list