Tomaz Hocevar's submission of Sorting device | CodeChef