Pergunta de entrevista da empresa Gainsight

Hoisting related question Angular custom directives Write a simple promise code?