Two Pointer Approach In Cpp Cin