PwC interview question

How would I solve certain problems