Order Peak Over Global Average - Coding problem | OneNoughtOne