PwC interview question

apti, code