REI Systems interview question

Basic JS and PHP questions