Polynomial Series Function Estimation - Coding problem | OneNoughtOne