LeetCode: Remove nth node from end