PwC Interview Question

Based on the previous experienced