Average Process Duration by Machine - Coding problem | OneNoughtOne