PTC interview question

implement a void pointer swap function