Infogain Interview Question

Technical question on javascript and angularjs