PwC interview question

To solve the CDD case