Mogo (Canada) interview question

Variable scope in js