Tomaz Hocevar's submission of Reduce string | CodeChef