Te mostraré mi algoritmo, si me muestras el tuyo