Sort:  

I was developing a website where i would use markdown for tutorials like this, posted the test here just to see if it was a viable option

Ah, I see! Very cool. Algorithm challenges like this one is key to understand programming. I'd love to read more from you. :)