Look at the caveats. I did not include Western Sahara as a part of Morocco, so the only land border of Morocco is with Algeria. Since Algeria was already guessed, you will have to backtrack to the previous country (Algeria) and choose the second longest border, which is Mali