PwC interview question

It was based on the case interview.