Pregunta de entrevista de PwC

Asked to code some basic JavaScript questions