Two Pointer Technique Python Compiler With Matplotlib