Create rmdupinsortedarray2.cpp