Two Pointer Algorithm In Python Step