Capgemini Interview Question

question on angular js