Zhang Yide's submission of Reduce string | CodeChef