Elsevier Interview Question

I was asked to finish some basic JavaScript question and do 2 pair programming task.