Product Period Weighted Average Price — Coding problem | OneNoughtOne