Remove Every Kth Node Leetcode Python