Coforge interview question

Basic JavaScript and angular structure.