PwC interview question

Current problem and a solution.