Apriso Interview Question

Solving some code architectural issue