Capgemini interview question

question on angular js