Easy · Linked Lists · about 10 minutes
Asked at Meta, Microsoft, Amazon, Google.
Unlink every node holding the value val and return the head of what's left (which may be empty).
val