5. Implemente la función invertirPrioridad y ejecute el test visitaDia4-invertirPrioridad.