PwC interview question

Based on the previous experienced