Two Pointer Algorithm Visualized