Thomson Reuters Interview Question

JavaScript basic question