PwC Interview Question

difficult scenario