PwC Interview Question

it was a practical case