Randstad interview question

Basic javascript