Implement Ejercicio3 and test it.Changed comparators the other way around.