financial.com interview question

javascript hoisting , es6 related