PTC interview question

Replace 2 void pointers in c++