Eyewire Interview Question

Javascript coding question