OpsTree Solutions interview question

They asked core javaScript like closure , hoisting etc.