Remove Nth Node From End of List

Given the head of a singly linked list, remove the nth node from the end and return the head of the updated list.

Examples
Input: [[1,2,3,4,5],2]
Output: [1,2,3,5]
Hints
Related Problems

Remove Nth Node From End of List

Given the head of a singly linked list, remove the `n`th node from the end and return the head of the updated list.