Accenture interview question

Build a solution to the case given