PwC interview question

An example of problem solving