PwC Interview Question

Basic programming questions have been asked