Zhenyang Dai's submission of Reduce string | CodeChef