Simplify3x Interview Question

Angular basics, javascript- hoisting, closures