Di Wang's submission of Quasi-Polynomial Sum | CodeChef