PwC Interview Question

Asked to code some basic JavaScript questions