Pregunta de entrevista de PTC

one question about implementing the swap() but gets void* arguments 3 question of code snippets which needs correcting also find the last k element