Ordered Polynomial Feature Generator - Coding problem | OneNoughtOne