Bank of Singapore interview question

Mostly technical discussion around javascript