Zhang Yide's submission of Weird Sum | CodeChef