PwC interview question

difficult scenario