Retain Orders with Customer Priority Rule - Coding problem | OneNoughtOne