Remove Every Kth Node Leetcode Python Compiler With Matplotlib