coursera
sorted output & failing coursera test