Two Pointer Approach Time Complexity