Eyewire interview question

Javascript coding question