Two Pointer Approach Problems With Heloc