PwC interview question

Not that difficult