EY Interview Question

Basic javascript